From: Jonas Ã…dahl Date: Fri, 20 Oct 2017 04:10:58 +0000 (+0200) Subject: st-scroll-view-fade: Include outer bound of pixel on border X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~888^2^2~72 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6bc3300e5a3d828be546149df9adf77bf6c2efd6;p=gnome-shell.git st-scroll-view-fade: Include outer bound of pixel on border The fade shader will draw the fade effect up until the border pixel. If we set the bottom right coordinate to the outer edge of the pixel we might end up not drawing the fade effect on all of the pixels. This could for example happen if one logical pixel (clutter stage pixel) consists of more than one physical pixel. https://bugzilla.gnome.org/show_bug.cgi?id=765011 --- diff --git a/src/st/st-scroll-view-fade.c b/src/st/st-scroll-view-fade.c index 37f44c42c..3942cbcf0 100644 --- a/src/st/st-scroll-view-fade.c +++ b/src/st/st-scroll-view-fade.c @@ -110,8 +110,8 @@ st_scroll_view_fade_paint_target (ClutterOffscreenEffect *effect) */ fade_area_topleft[0] = content_box.x1 + (verts[0].x - paint_box.x1); fade_area_topleft[1] = content_box.y1 + (verts[0].y - paint_box.y1); - fade_area_bottomright[0] = content_box.x2 + (verts[3].x - paint_box.x2); - fade_area_bottomright[1] = content_box.y2 + (verts[3].y - paint_box.y2); + fade_area_bottomright[0] = content_box.x2 + (verts[3].x - paint_box.x2) + 1; + fade_area_bottomright[1] = content_box.y2 + (verts[3].y - paint_box.y2) + 1; g_object_get (ST_SCROLL_VIEW (self->actor), "hscrollbar-visible", &h_scroll_visible,